/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    int iNumber;
    int iSum = 0;

    for (iNumber = 0;iNumber <= 100;iNumber++) {
        iSum += iNumber;
    }
    printf("the result is: %d\n", iSum);

    return 0;
}

/*
output:
the result is: 5050
*/